package com.example.chinese;

import android.app.AppComponentFactory;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_1 extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity1);
       Button  bt3=(Button)findViewById(R.id.bt3);
       Button  bt4=(Button)findViewById(R.id.bt4);
         bt3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name2","我是小越，因为梦想来到这 :无亮眼表现第一轮被陶汰");
                editor.commit();
                Intent intent3=new Intent(Star_1.this,Star_12.class);
                startActivity(intent3);
            }
        });

         bt4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name2","唱跳实力弱的你在参加的节目中如何介绍自己:我是全村的希望，来这学习的");
                editor.commit();
                Intent intent4=new Intent();
                intent4.setClass(Star_1.this,Star_2.class);
                startActivity(intent4);
            }
        });
    }
}
